export default {
  props: {},
  data() {
    return {
      entrustContract: {},
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    async getEntrustContract(relatedId) {
      if (!relatedId) return

      const [res] = await this.$utils.promise(
        this.$api.getData(this.$serviceName, 'entrust_contract', {
          'customer_related_id.eq': relatedId,
        })
      )

      this.entrustContract = (res && res.data && res.data.length && res.data[0]) || {}
    },
  },
}
